<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/jsp/comm_css_include.jsp"%>
<!doctype html>
<html>
<head>
<style type="text/css">
* {
	margin: 0px;
	padding: 0px;
	font-size: 12px;
}
</style>
</head>
<body class="gray-bg">
	<!-- 隐藏域 -->
	<div class="buttonfixed">
		<button type="button" class="btn dpbtn_green" id="print" onclick="print();">打印</button>
	</div>
	<div class="container creditbody">
		<div class="iboxtitle">
			<span><i class="glyphicon glyphicon-map-marker"></i>&nbsp;</span>
			<a href="javascript:void(0)"></a>
		</div>
		<div class="ibox-content ibox-con">
			<%@include file="/jsp/common_yw_include.jsp"%>
		</div>

		<div class="business-manwife">协议资料</div>
		<%@include file="/jsp/xieyi_zi_liao.jsp"%>

		<div class="business-manwife">费用明细</div>
		<div class="tche-padding">
		<table cellpadding="0" cellspacing="0" border="0" class="thead-table padding-wangge">
					<thead class="thead-a">
						<tr>
							<th class="warn-red-bold">贷款本金</th>
							<th class="warn-red-bold">签约贷款额</th>
							<c:if test="${!empty fundItems_ }">
								<c:forEach items="${fundItems_ }" var="fundItem_" varStatus="status">
									<th class="warn-red-bold">${fundItem_.name }</th>
								</c:forEach>
							</c:if>
						</tr>
					</thead>
					<tbody class="tbody-a">
						<tr>
							<td><fmt:formatNumber type="number" value="${empty ywBusinessLoan.loanAmount ? 0 : ywBusinessLoan.loanAmount}" pattern="0.00" maxFractionDigits="2" /></td>
							<td><fmt:formatNumber type="number" value="${empty ywBusinessLoan.signLoanAmount ? 0 :  ywBusinessLoan.signLoanAmount}" pattern="0.00" maxFractionDigits="2" /></td>
							<c:if test="${!empty fundItems_ }">
								<c:forEach items="${fundItems_ }" var="fundItem_" varStatus="status">
									<td><fmt:formatNumber type="number" value="${empty fundItem_.feeCount ? 0 : fundItem_.feeCount}" pattern="0.00" maxFractionDigits="2" /></td>
								</c:forEach>
							</c:if>
						</tr>
					</tbody>
				</table>
			<c:choose>
				<c:when test="${!empty fundItems }">
					<ul class="thead-tableul">
						<c:forEach items="${fundItems }" var="cwFundItem"
							varStatus="status">
							<c:if test="${status.index % 7 == 0 }">
								<li>
									<table cellpadding="0" cellspacing="0" border="0"
										class="thead-table">
										<thead class="thead-a">
											<tr>
												<th></th>
												<th>应收</th>
												<th>实收</th>
											</tr>
										</thead>
										<tbody class="tbody-a">
											</c:if>
											<tr>
												<td
													<c:if test="${cwFundItem.key == '35'}"> style="font-weight:bold;"</c:if>
													<c:if test="${cwFundItem.key == '03'}"> style="font-weight:bold;color:#FC1515;"</c:if>
													<c:if test="${cwFundItem.key == '25'}"> style="font-weight:bold;color:#FC1515;"</c:if>>${cwFundItem.name }
												</td>
												<td id="fee_td_${cwFundItem.key }"
													<c:if test="${cwFundItem.key == '35'}"> style="font-weight:bold;"</c:if>><fmt:formatNumber
														type="number" value="${cwFundItem.feeCount }"
														pattern="0.00" maxFractionDigits="2" /></td>
												<td id="remit_td_${cwFundItem.key }"
													<c:if test="${cwFundItem.key == '35'}"> style="font-weight:bold;"</c:if>><fmt:formatNumber
														type="number" value="${cwFundItem.remitCount }"
														pattern="0.00" maxFractionDigits="2" /></td>
											</tr>
											<c:if test="${status.index % 7 == 6  || status.last}">
										</tbody>
									</table>
								</li>
							</c:if>
						</c:forEach>
					</ul>
				</c:when>
				<c:otherwise>
       				没有收费项目
       			</c:otherwise>
			</c:choose>
			<ul class="thead-tableul">
				<li>
					<table cellpadding="0" cellspacing="0" border="0"
						class="thead-table">
						<thead class="thead-a">
							<tr>
								<th></th>
								<th>应收</th>
								<th>实收</th>
							</tr>
						</thead>
						<tbody class="tbody-a">
							<tr>
								<td class="npb style-red">应收合计</td>
								<td><fmt:formatNumber type="number"
										value="${fundTotal.feeCount }" pattern="0.00"
										maxFractionDigits="2" /></td>
								<td><fmt:formatNumber type="number"
										value="${fundTotal.remitCount }" pattern="0.00"
										maxFractionDigits="2" /></td>
							</tr>
						</tbody>
					</table>
				</li>
			</ul>
		</div>
		<div class="business-manwife">订单信息</div>
		<div class="tche-padding tancQa">
			<table cellpadding="0" cellspacing="0" border="0" class="infor-table" id="used-car">
				<tr>
					<td align="right"><label class="control-label np">车辆性质：</label></td>
					<td>
						<input id="carType" name="carType" type="hidden"/>
						<input id="startDate" name="startDate" type="hidden" class="select-control" value='<fmt:formatDate value="${ywBusinessCar.startDate }" pattern="yyyy-MM-dd"/>' />
						<div class="control-div np">${ywBusinessCar.carTypeDisplay }</div>
					</td>
					<td align="right"><label class="control-label np">返利方式：</label>
					</td>
					<td>
						<div class="control-div np" id="">${empty ywBusinessLoanEdit.rebateTypeDisplay ? '-' : ywBusinessLoanEdit.rebateTypeDisplay}</div>
					</td>
				</tr>
			</table>
		</div>
		
		<div class="business-manwife">修改原因</div>
		<div class="business-padding">
			<table cellpadding="0" cellspacing="0" border="0" class="infor-table list-table-detail">
				<tr>
					<td align="right"><label class="control-label np">修改原因：</label></td>
					<td>
						
						<div class="control-div np" id="apply_change_remarks" name="apply_change_remarks">${empty ywBusinessLoanEdit.remarks ? '-' : ywBusinessLoanEdit.remarks}</div>
					</td>
				</tr>
			</table>
		</div>
		
		<div class="business-manwife">审核信息</div>
		<div class="business-padding">
			<table cellpadding="0" cellspacing="0" border="0" class="infor-table list-table-detail">
				<tr>
					<td align="right"><label class="control-label np">申请人：</label></td>
					<td colspan="2">
						<div class="control-div np" id="" name="">${shenqin }</div>
					</td>
					<td align="right"><label class="control-label np">申请时间：</label></td>
					<td colspan="2">
						<div class="control-div np" id="" name="">${shenqinDate }</div>
					</td>
				</tr>
				<tr>
					<td align="right"><label class="control-label np">审核一审核人：</label></td>
					<td>
						<div class="control-div np" id="" name="">${shenheRen1 }</div>
					</td>
					<td align="right"><label class="control-label np">审核一结果：</label></td>
					<td>
						<div class="control-div np" id="" name="">${shenheRen1JieGuo }</div>
					</td>
					<td align="right"><label class="control-label np">审核一时间：</label></td>
					<td>
						<div class="control-div np" id="" name="">${shenheDate1 }</div>
					</td>
				</tr>
				<tr>
					<td align="right"><label class="control-label np">审核二审核人：</label></td>
					<td>
						<div class="control-div np" id="" name="">${shenheRen2 }</div>
					</td>
					<td align="right"><label class="control-label np">审核二结果：</label></td>
					<td>
						<div class="control-div np" id="" name="">${shenheRen2JieGuo }</div>
					</td>
					<td align="right"><label class="control-label np">审核二时间：</label></td>
					<td>
						<div class="control-div np" id="" name="">${shenheDate2 }</div>
					</td>
				</tr>
			</table>
		</div>
		
		<form class="form-horizontal buyinfor-form" id="commentFormma">
				<div class="business-manwife">垫款调整信息</div>
				<div class="tche-padding">
					<table cellpadding="0" cellspacing="0" border="0" class="thead-tabletz">
						<thead class="thead-a">
							<tr>
								<th>项目</th>
								<th>原值</th>
								<th>新值</th>
								<th>调整值</th>
							</tr>
						</thead>
						<tbody class="tbody-a">
							<tr>
								<td>贷款银行</td>
								<td>${hisYwBusinessLoan.loanBankDisplay }</td>
								<td>${ywBusinessLoanEdit.loanBankDisplay }</td>
								<td>${hisYwBusinessLoan.loanBank == ywBusinessLoanEdit.loanBank ? '-' : ywBusinessLoanEdit.loanBank}</td>
							</tr>
							
							<tr>
								<td>取整模式</td>
								<td><input class="tbody-control"  value='${hisYwBusinessLoan.ccol1Display }' readonly="readonly"/></td>
								<td><input class="tbody-control"  value='${ywBusinessLoanEdit.ccol1Display }' readonly="readonly"/></td>
								<td>${hisYwBusinessLoan.ccol1 == ywBusinessLoanEdit.ccol1 ? '-' : ywBusinessLoanEdit.ccol1Display}</td>
							</tr>
							
							<tr>
								<td>贷款模式</td>
								<td><input class="tbody-control" value='${hisYwBusinessLoan.loanTypeDisplay }' readonly="readonly"/></td>
								<td><input class="tbody-control" value='${ywBusinessLoanEdit.loanTypeDisplay }' readonly="readonly"/></td>
								<td>${hisYwBusinessLoan.loanType == ywBusinessLoanEdit.loanType ? '-' : ywBusinessLoanEdit.loanTypeDisplay}</td>
							</tr>
							
							<tr>
								<td>购入价</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.carPrice ? 0 : hisYwBusinessLoan.carPrice}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.carPrice ? 0 : ywBusinessLoanEdit.carPrice}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.carPrice - hisYwBusinessLoan.carPrice) ? '-' : (ywBusinessLoanEdit.carPrice - hisYwBusinessLoan.carPrice)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>实际贷款额</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.loanAmount ? 0 : hisYwBusinessLoan.loanAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.loanAmount ? 0 : ywBusinessLoanEdit.loanAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.loanAmount - hisYwBusinessLoan.loanAmount) ? '-' : (ywBusinessLoanEdit.loanAmount - hisYwBusinessLoan.loanAmount)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly" /></td>
							</tr>
							
							<tr>
								<td>首付款</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.firstPaymentAmount ? 0 : hisYwBusinessLoan.firstPaymentAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.firstPaymentAmount ? 0 : ywBusinessLoanEdit.firstPaymentAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.firstPaymentAmount - hisYwBusinessLoan.firstPaymentAmount) ? '-' : (ywBusinessLoanEdit.firstPaymentAmount - hisYwBusinessLoan.firstPaymentAmount)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>二手车估价</td>
								<td>
									<c:choose>
										<c:when test="${hisYwBusinessLoan.carType == '02' }">
											<input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.carEstimatePrice ? 0 : hisYwBusinessLoan.carEstimatePrice}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/>
										</c:when>
										<c:otherwise>
											<input class="tbody-control" type="number" value='0.00' readonly="readonly"/>
										</c:otherwise>
									 </c:choose>
								</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.carEstimatePrice ? 0 : ywBusinessLoanEdit.carEstimatePrice}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.carEstimatePrice - hisYwBusinessLoan.carEstimatePrice) ? 0 : (ywBusinessLoanEdit.carEstimatePrice - hisYwBusinessLoan.carEstimatePrice)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>二手车车龄(月)</td>
								<td>
									<c:choose>
										<c:when test="${hisYwBusinessLoan.carType == '02' }">
											<input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.carAge ? 0 : hisYwBusinessLoan.carAge}" pattern="0" maxFractionDigits="0"/>' readonly="readonly"/>
										</c:when>
										<c:otherwise>
											<input class="tbody-control" type="number" value='0' readonly="readonly"/>
										</c:otherwise>
								   </c:choose>
								<td>
									<c:choose>
										<c:when test="${ywBusinessLoanEdit.carType == '02' }">
											<input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.carAge ? 0 : ywBusinessLoanEdit.carAge}" pattern="0" maxFractionDigits="0"/>' readonly="readonly"/>
										</c:when>
										<c:otherwise>
											<input class="tbody-control" type="number" value='0' readonly="readonly"/>
										</c:otherwise>
								   </c:choose>
								 </td>
								<td>${hisYwBusinessLoan.carAge == ywBusinessLoanEdit.carAge ? '-' : ywBusinessLoanEdit.carAge}</td>
							</tr>
							
							<tr>
								<td>银行基准利率(%)</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.bankRate ? 0 : hisYwBusinessLoan.bankRate * 100}" pattern="0.0000" maxFractionDigits="4"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.bankRate ? 0 : ywBusinessLoanEdit.bankRate * 100}" pattern="0.0000" maxFractionDigits="4"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.bankRate - hisYwBusinessLoan.bankRate) ? 0 : (ywBusinessLoanEdit.bankRate - hisYwBusinessLoan.bankRate) *100}" pattern="0.0000" maxFractionDigits="4"/>'/></td>
							</tr>
							
							<tr>
								<td>贷款期限</td>
								<td><input class="tbody-control" value='${hisYwBusinessLoan.loanMonthDisplay }' readonly="readonly"/></td>
								<td><input class="tbody-control" value='${ywBusinessLoanEdit.loanMonthDisplay }' readonly="readonly"/></td>
								<td>${hisYwBusinessLoan.loanMonthDisplay == ywBusinessLoanEdit.loanMonthDisplay ? '-' : ywBusinessLoanEdit.loanMonthDisplay}</td>
							</tr>
							
							<tr>
								<td>按揭服务费</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.servicePrice ? 0 : hisYwBusinessLoan.servicePrice}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.servicePrice ? 0 : ywBusinessLoanEdit.servicePrice}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.servicePrice - hisYwBusinessLoan.servicePrice) ? 0 : (ywBusinessLoanEdit.servicePrice - hisYwBusinessLoan.servicePrice)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>签约公司利率(%)</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.companyRate ? 0 : hisYwBusinessLoan.companyRate * 100}" pattern="0.0000" maxFractionDigits="4"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.companyRate ? 0 : ywBusinessLoanEdit.companyRate * 100}" pattern="0.0000" maxFractionDigits="4"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.companyRate - hisYwBusinessLoan.companyRate) ? 0 : (ywBusinessLoanEdit.companyRate - hisYwBusinessLoan.companyRate)* 100}" pattern="0.0000" maxFractionDigits="4"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>签约贷款额</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.signLoanAmount ? 0 : hisYwBusinessLoan.signLoanAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.signLoanAmount ? 0 : ywBusinessLoanEdit.signLoanAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.signLoanAmount - hisYwBusinessLoan.signLoanAmount) ? 0 : (ywBusinessLoanEdit.signLoanAmount - hisYwBusinessLoan.signLoanAmount)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>签约总还款额</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.totalRepaymentAmount ? 0 : hisYwBusinessLoan.totalRepaymentAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.totalRepaymentAmount ? 0 : ywBusinessLoanEdit.totalRepaymentAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.totalRepaymentAmount - hisYwBusinessLoan.totalRepaymentAmount) ? 0 : (ywBusinessLoanEdit.totalRepaymentAmount - hisYwBusinessLoan.totalRepaymentAmount)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>银行利息</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.bankRateAmount ? 0 : hisYwBusinessLoan.bankRateAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.bankRateAmount ? 0 : ywBusinessLoanEdit.bankRateAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.bankRateAmount - hisYwBusinessLoan.bankRateAmount) ? 0 : (ywBusinessLoanEdit.bankRateAmount - hisYwBusinessLoan.bankRateAmount)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>签约月还款额</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.amountMonthly ? 0 : hisYwBusinessLoan.amountMonthly}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.amountMonthly ? 0 : ywBusinessLoanEdit.amountMonthly}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.amountMonthly - hisYwBusinessLoan.amountMonthly) ? 0 : (ywBusinessLoanEdit.amountMonthly - hisYwBusinessLoan.amountMonthly)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>签约首月还款额</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.firstMonthTotalAmount ? 0 : hisYwBusinessLoan.firstMonthTotalAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.firstMonthTotalAmount ? 0 : ywBusinessLoanEdit.firstMonthTotalAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.firstMonthTotalAmount - hisYwBusinessLoan.firstMonthTotalAmount) ? 0 : (ywBusinessLoanEdit.firstMonthTotalAmount - hisYwBusinessLoan.firstMonthTotalAmount)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>每月本金还款额</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.monthlyPrincipalAmount ? 0 : hisYwBusinessLoan.monthlyPrincipalAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.monthlyPrincipalAmount ? 0 : ywBusinessLoanEdit.monthlyPrincipalAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.monthlyPrincipalAmount - hisYwBusinessLoan.monthlyPrincipalAmount) ? 0 : (ywBusinessLoanEdit.monthlyPrincipalAmount - hisYwBusinessLoan.monthlyPrincipalAmount)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>每月手续费</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.monthlyFee ? 0 : hisYwBusinessLoan.monthlyFee}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.monthlyFee ? 0 : ywBusinessLoanEdit.monthlyFee}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.monthlyFee - hisYwBusinessLoan.monthlyFee) ? 0 : (ywBusinessLoanEdit.monthlyFee - hisYwBusinessLoan.monthlyFee)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>首月本金还款额</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.firstMonthAmount ? 0 : hisYwBusinessLoan.firstMonthAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.firstMonthAmount ? 0 : ywBusinessLoanEdit.firstMonthAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.firstMonthAmount - hisYwBusinessLoan.firstMonthAmount) ? 0 : (ywBusinessLoanEdit.firstMonthAmount - hisYwBusinessLoan.firstMonthAmount)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>首月手续费</td>                                     
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.firstMonthFee ? 0 : hisYwBusinessLoan.firstMonthFee}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.firstMonthFee ? 0 : ywBusinessLoanEdit.firstMonthFee}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.firstMonthFee - hisYwBusinessLoan.firstMonthFee) ? 0 : (ywBusinessLoanEdit.firstMonthFee - hisYwBusinessLoan.firstMonthFee)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>担保费率</td>                                     
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.trialAssureRate ? 0 : hisYwBusinessLoan.trialAssureRate}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.trialAssureRate ? 0 : ywBusinessLoanEdit.trialAssureRate}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.trialAssureRate - hisYwBusinessLoan.trialAssureRate) ? 0 : (ywBusinessLoanEdit.trialAssureRate - hisYwBusinessLoan.trialAssureRate)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>签约担保费</td>                                     
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.assureAmount ? 0 : hisYwBusinessLoan.assureAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.assureAmount ? 0 : ywBusinessLoanEdit.assureAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.assureAmount - hisYwBusinessLoan.assureAmount) ? 0 : (ywBusinessLoanEdit.assureAmount - hisYwBusinessLoan.assureAmount)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>分期额度</td>                                     
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.stageAmount ? 0 : hisYwBusinessLoan.stageAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.stageAmount ? 0 : ywBusinessLoanEdit.stageAmount}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.stageAmount - hisYwBusinessLoan.stageAmount) ? 0 : (ywBusinessLoanEdit.stageAmount - hisYwBusinessLoan.stageAmount)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<tr>
								<td>分期比例</td>                                     
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.fqbl ? 0 : hisYwBusinessLoan.fqbl}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.fqbl ? 0 : ywBusinessLoanEdit.fqbl}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.fqbl - hisYwBusinessLoan.fqbl) ? 0 : (ywBusinessLoanEdit.fqbl - hisYwBusinessLoan.fqbl)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							
							<%-- <tr>
								<td>经销商返利</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.rebateDealer ? 0 : hisYwBusinessLoan.rebateDealer}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.rebateDealer ? 0 : ywBusinessLoanEdit.rebateDealer}" pattern="0.00" maxFractionDigits="2"/>'readonly="readonly" /></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.rebateDealer - hisYwBusinessLoan.rebateDealer) ? 0 : (ywBusinessLoanEdit.rebateDealer - hisYwBusinessLoan.rebateDealer)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							<tr>
								<td>分公司展业费</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.rebateProvince ? 0 : hisYwBusinessLoan.rebateProvince}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly" /></td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.rebateProvince ? 0 : ywBusinessLoanEdit.rebateProvince}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
								<td><input class="tbody-control compare" type="text" value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.rebateProvince - hisYwBusinessLoan.rebateProvince) ? 0 : (ywBusinessLoanEdit.rebateProvince - hisYwBusinessLoan.rebateProvince)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr>
							<tr>
								<td>区域&业务员展业费</td>
								<td><input class="tbody-control" type="number" value='<fmt:formatNumber type="number" value="${empty hisYwBusinessLoan.rebateArea ? 0 : hisYwBusinessLoan.rebateArea}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly" /></td>
								<td><input class="tbody-control" type="number"  value='<fmt:formatNumber type="number" value="${empty ywBusinessLoanEdit.rebateArea ? 0 : ywBusinessLoanEdit.rebateArea}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly" /></td>
								<td><input class="tbody-control compare" type="text"  value='<fmt:formatNumber type="number" value="${empty (ywBusinessLoanEdit.rebateArea - hisYwBusinessLoan.rebateArea) ? 0 : (ywBusinessLoanEdit.rebateArea - hisYwBusinessLoan.rebateArea)}" pattern="0.00" maxFractionDigits="2"/>' readonly="readonly"/></td>
							</tr> --%>
		
						</tbody>
					</table>
				</div>
			</form>
	</div>
	<!-- public quote -->
	<%@include file="/jsp/comm_js_include.jsp"%>
	<!-- layerDate plugin javascript -->
	<script src="${basePath}/js/plugins/layer/laydate/laydate.js"></script>
	<!-- 
 	    作者：程立勇
 	   描述：js脚本
 	 -->
	<script type="text/javascript">
	jQuery(function($) {  
    	$(".tbody-a tr").each(function(){
    		var compareVal = $(this).find(".compare").val();
    		if(compareVal == "0.00" || compareVal == "0.0000"){
    			$(this).find(".compare").val('-');
    		}
    	})
    });
    
    /*打印*/
    function print(){
		var busiId = $('#busiId').val();
		var loanEditId = $.getUrlData('loanEditId');
		if(!loanEditId || loanEditId == '') {
			layer.msg('参数缺失',{icon:5});
			return;
		}
    	$.dpAjax({
    		url:'${basePath}/CwRemitCarController/print',
    		type:'POST',
    		data:{busiId:busiId,check:true,modifyAudit:1,loanEditId:loanEditId},
    		success:function(datas)	{
    			//成功响应，说明没有报错，可以下载
    			location.href='${basePath}/CwRemitCarController/print?busiId=' + busiId + "&modifyAudit=1" + "&loanEditId=" + loanEditId;
    			return;
    		}
    	});
	}
	 	
	</script>
</body>
</html>
